#include "Pandora.h"
#include "Requester.h"

namespace request_manager
{

std::string Pandora::locate_m = "/locate";
std::string Pandora::list_services_m = "/services";

Pandora::Pandora()
{
	service_url = Environment::pandora_URL;
}


Pandora::~Pandora()
{
}


Response Pandora::locate(std::string service)
{
	std::string url = ((service_url.append(locate_m)).append("/")).append(service);
	Request request = Request(url);

	Response response = Requester::_doGET(&request);
	
	return response;
}


}